import pprint

import requests

url = "https://gate.lagou.com/system/agreement"
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36",
    "Referer": "https://www.lagou.com/",
    "Host": "gate.lagou.com",
    "Connection": "keep-alive",
    "Accept": "application/json",
    "Content-type": "application/json",
}
rsaEncryptData = "mz+eO99ACMV0Z1+IE9C7eKXy1wCK4LTp9bJNuojEK0hhMO6wqDE8z9poxLBmqvmK51fDlINUIBLnFMqrtr2fSOw4zhw9R9NSIDSEdYw/nYYhmwiUzcBR1YPu8LIqnRKVPY0W8oA5N0HRrVliidEh+OtvbCpGYsmGJ0cXoG7LuLhqEt41bu5/PfHax2QWd2GVqauosjRu/+8iknVW92ei8UC0p8vp3GllTdU74sDiVD+LW+XaDzeMHdOTlpaC8LAiXClD6bPJQ/NMO1TpojNwe/WBrWpmaeJ6dZdida04DVOWyfQzrRa8D0fW9Ad1TlD+0vNO+4YwjwcftgOC8VjTcg=="
data = {
    "secretKeyDecode": rsaEncryptData
}
res = requests.post(url, headers=headers, json=data)
print(res.text)
pprint.pprint(res.json())
print(res.json()["content"]["secretKeyValue"])
print(res.json()["content"]["expireTime"])
